home *** CD-ROM | disk | FTP | other *** search
/ Into His Marvelous Light / Into His Marvelous LIGHT.iso / lesson2.dxr / 00240_Script_Go to Frame X Button < prev    next >
Text File  |  1998-01-03  |  934b  |  47 lines

  1. -- DESCRIPTION --
  2.  
  3. on getBehaviorDescription me
  4.   return "¼
  5. GO TO FRAME X"&RETURN&RETURN&"¼
  6. Moves the playback head to the chosen frame ¼
  7. when the user clicks on the sprite"&RETURN&RETURN&"¼
  8. PERMITTED MEMBER TYPES:"&RETURN&"Graphic members"&RETURN&RETURN&"¼
  9. PARAMETERS:"&RETURN&"¼
  10. * Go to which frame on mouseUp?"
  11. end getBehaviorDescription
  12.  
  13. on getBehaviorTooltip me
  14.   return "¼
  15. Use with graphic members."&RETURN&RETURN&"¼
  16. Moves the playback head to"&RETURN&"¼
  17. the chosen frame on mouseUp."
  18. end getBehaviorTooltip
  19.  
  20.  
  21.  
  22. -- HISTORY --
  23.  
  24. -- 3 November 1998, written for the D7 Behaviors Palette by James Newton
  25.  
  26.  
  27.  
  28. property myTargetFrame
  29.  
  30.  
  31. on mouseUp me
  32.   go myTargetFrame
  33. end mouseUp
  34.  
  35.  
  36. on getPropertyDescriptionList me
  37.   return ¼
  38. [ ¼
  39.  #myTargetFrame: ¼
  40.  [ ¼
  41.   #comment: "Go to which frame on mouseUp?:", ¼
  42.   #format:  #integer, ¼
  43.   #default:  the frame ¼
  44.  ] ¼
  45. ]
  46. end getPropertyDescriptionList